<%@ page language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="header">
    <h1 class="logo">
        <a title="" style="background: url(images/logo.png);" href="/index">蜗牛图书商城</a>
    </h1>

        <ul class="shortcut">

            <li class=""><a href="/ucenter/index.html">我的账户</a></li>
            <li><a href="/ucenter/index.html">我的订单</a></li>
            <li class='last'><a href="/help">使用帮助</a></li>

        </ul>

    <p class="loginfo">
        <c:if test="${not empty sessionScope.USER}">
            ${sessionScope.USER.username},您好，欢迎您来到${site}购物！[<a href="user?opr=logout" class="reg">安全退出</a>]
        </c:if>

        <c:if test="${ empty sessionScope.USER}">
            [<a href="user?opr=login">登录</a><a class="reg" href="user?opr=register">免费注册</a>]
        </c:if>

    </p>
</div>